Camera parameter calculation apparatus, camera parameter calculation method, and recording medium

ABSTRACT

Provided are: a point group obtainer that obtains three-dimensional point group data indicating three-dimensional locations of each of a plurality of three-dimensional points included in an imaging space of one or more cameras; a camera parameter calculator that (i) obtains corresponding points, for each of the plurality of three-dimensional points, in individual images captured using the one or more cameras, based on the three-dimensional point group data and an initial camera parameter of each camera, and (ii) calculates a camera parameter of each camera on the basis of the initial camera parameter of each camera and pixel values, included in the individual images, at the corresponding points; and a camera parameter outputter that outputs the calculated camera parameter of each camera.

BACKGROUND 1. Technical Field

The present disclosure relates to a technique for calculating cameraparameters.

2. Description of the Related Art

To calculate camera parameters, namely to calibrate a camera, it isnecessary to associate three-dimensional coordinates in athree-dimensional space and pixel locations in a two-dimensional image.For this purpose, conventionally, three-dimensional coordinates andpixel locations in a two-dimensional image are associated by imaging acalibration index such as a checked pattern having a known shape anddetecting intersecting points of the checked pattern (for example, seeJapanese Patent No. 4681856, Japanese Patent No. 5580164, Roger Y. Tsai,“A Versatile Camera Calibration Technique for High-Accuracy 3D MachineVision Metrology Using Off-The-Shelf TV Cameras and Lenses”, IEEEJournal of Robotics and Automation, Vol. 3, pp. 323-344, 1987, andZhengyou Zhang, “A Flexible New Technique for Camera Calibration”, IEEETransactions on Pattern Analysis and Machine Intelligence, Vol. 22, pp.1330-1334, 2000).

SUMMARY

In conventional camera calibration, a calibration index having a knownthree-dimensional structure is used. A calibration index having highprocessing precision and a wide imaging space are therefore necessary.Furthermore, in this kind of calibration of a wide-angle camera,large-scale calibration equipment is necessary to arrange a calibrationindex across the entire field of view.

The present disclosure has been invented in light of the aforementionedproblems, and the purpose thereof is to calibrate a single-lens cameraand a stereo camera or multi-lens camera without using a calibrationindex having a known three-dimensional structure.

In one general aspect, the techniques disclosed here feature a cameraparameter calculation apparatus that includes: a point group obtainerthat obtains three-dimensional point group data indicatingthree-dimensional coordinates of a plurality of three-dimensional pointsincluded in a common imaging space of one or more cameras; a cameraparameter calculator that (i) calculates image coordinates ofcorresponding points, for each of the plurality of three-dimensionalpoints, in one or more images captured using the one or more cameras,based on the three-dimensional point group data and one or more initialcamera parameters of the one or more cameras, and (ii) calculates one ormore camera parameters of the one or more cameras, based on pixelvalues, included in the one or more images, at the image coordinates;and a camera parameter outputter that outputs the one or more cameraparameters, in which the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship.

According to the camera calibration technique of the present disclosure,camera parameters are evaluated based on pixel values at pixelcoordinates obtained by projecting three-dimensional coordinates onto animage using the camera parameters, and thus camera parameters can becalculated, namely a camera can be calibrated, without using acalibration index having a known three-dimensional structure. A cameracan therefore be calibrated without associating three-dimensionalcoordinates in a three-dimensional space and pixel locations in atwo-dimensional image.

It should be noted that general or specific aspects hereof may berealized by an apparatus, a system, a method, an integrated circuit, acomputer program, or a computer-readable recording medium, and may berealized by an arbitrary combination of an apparatus, a system, amethod, an integrated circuit, a computer program, and acomputer-readable recording medium. A computer-readable recording mediumincludes a nonvolatile recording medium such as a compact disc read-onlymemory (CD-ROM), for example.

Additional benefits and advantages of the aspects of the presentdisclosure will become apparent from the present specification anddrawings. The benefits and/or advantages may be individually provided bythe various aspects and features disclosed in the present specificationand drawings, and need not all be necessary in order to obtain one ormore of the same.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram depicting an example of a configuration of acamera parameter calculation apparatus according to embodiment 1;

FIG. 2 is a flowchart depicting an example of an operation of the cameraparameter calculation apparatus according to embodiment 1;

FIG. 3 is a drawing depicting an example of a computer graphics (CG)image according to embodiment 1;

FIG. 4 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for C_(x);

FIG. 5 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for C_(y);

FIG. 6 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for f;

FIG. 7 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for d′_(x);

FIG. 8 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for R_(x);

FIG. 9 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for R_(y);

FIG. 10 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for R_(z);

FIG. 11 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for T_(x);

FIG. 12 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for T_(y);

FIG. 13 is a drawing depicting evaluation values in the vicinity of acorrect camera parameter for T_(z);

FIG. 14 is a flowchart depicting an example of an operation of a cameraparameter calculation apparatus according to embodiment 2;

FIG. 15 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 3;

FIG. 16 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 4;

FIG. 17 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 5;

FIG. 18 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 6;

FIG. 19 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 7;

FIG. 20 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 8;

FIG. 21 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 9;

FIG. 22 is a block diagram of a camera parameter calculation apparatusaccording to embodiment 10;

FIG. 23 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 10;

FIG. 24 is a flowchart depicting an example of camera parametercalculation processing according to embodiment 11;

FIG. 25 is a flowchart depicting an example of point group selectionmask creation processing according to embodiment 11; and

FIG. 26 is an image of a checked pattern captured by a fish-eye camera.

DETAILED DESCRIPTION Findings Forming the Basis for the PresentDisclosure

The present inventor discovered that the following problems occur inrelation to the camera calibration described in the Description of theRelated Art section.

In order to calibrate a camera, it is necessary to associatethree-dimensional coordinates of points of interest in athree-dimensional space in which the camera is present, and pixellocations (hereinafter, referred to as corresponding points) at whichthe points of interest are projected in a two-dimensional image obtainedby imaging the three-dimensional space using the camera. For thispurpose, conventionally, the three-dimensional coordinates and the pixellocations in the two-dimensional image are associated by imaging acalibration index such as a checked pattern having a known shape anddetecting intersecting points of the checked pattern. Here, thethree-dimensional coordinates in the three-dimensional space arereferred to as world coordinates, and the two-dimensional coordinates inthe two-dimensional image are referred to as image coordinates.

For example, FIG. 26 is a calibration index in which a checked patternhas been drawn at fixed intervals inside a box-shaped subject. For thepixel locations in a two-dimensional image, an operator reads inlocations of intersecting points of an image coordinate system in whichthe top left of the image is the point of origin, as depicted in FIG.26. Corresponding three-dimensional coordinates are obtained from thechecked pattern used for imaging. Specifically, the three-dimensionalcoordinates can be identified by setting the point of origin and thethree axes of X, Y, and Z for the world coordinates at specificlocations, and determining which intersecting point of the checkedpattern from the point of origin corresponds to an intersecting point ofinterest.

A point in the world coordinates can be projected onto image coordinatesby a coordinate conversion that is based on camera parameters. In otherwords, calculated corresponding points on a camera image correspondingto points in the world coordinates can be obtained using cameraparameters. Conversely, camera parameters can be calculated from a setof world coordinates (X, Y, Z) and image coordinates (x, y) thatactually correspond. Using a pinhole camera as an example, a projectionfrom world coordinates to image coordinates by means of cameraparameters is indicated in expression 1.

$\begin{matrix}{{h\left\lbrack \begin{matrix}x_{u} \\y_{u} \\1\end{matrix} \right\rbrack} = \mspace{65mu} {{{\begin{bmatrix}{1\text{/}d^{\prime}x} & 0 & C_{x} \\0 & {1\text{/}d^{\prime}y} & C_{y} \\0 & 0 & 1\end{bmatrix}\begin{bmatrix}f & 0 & 0 & 0 \\0 & f & 0 & 0 \\0 & 0 & 1 & 0\end{bmatrix}}\mspace{284mu}\begin{bmatrix}R_{11} & R_{12} & R_{13} & T_{x} \\R_{21} & R_{22} & R_{23} & T_{y} \\R_{31} & R_{32} & R_{33} & T_{z} \\0 & 0 & 0 & 1\end{bmatrix}}\begin{bmatrix}X \\Y \\Z \\1\end{bmatrix}}} & \left( {{Expression}\mspace{14mu} 1} \right)\end{matrix}$

For the camera parameters of this pinhole camera model, an x componentand y component in the center of the image are taken as C_(x) and C_(y),a focal length is taken as f, lengths in the x and y directions of onepixel of an imaging element are respectively taken as d′_(x) and d′_(y),a three-row three-column rotation matrix for reference for the worldcoordinates of the camera is taken as R (the tens place of thebottom-right subscript represents the row and the ones place representsthe column), x, y, and z components of a translation for reference forthe world coordinates of the camera are respectively taken as T_(x),T_(y), and T_(z), and a parameter having no degree of freedom is takenas h. Furthermore, distortion such as distortion aberration can beexpressed by using Φ(xd, yd), which represents a conversion from imagecoordinates (x_(u), y_(u)) having no distortion to image coordinates (x,y) having distortion (expression 2).

$\begin{matrix}{\begin{bmatrix}x \\y\end{bmatrix} = {\Phi \left( \begin{bmatrix}x_{u} \\y_{u}\end{bmatrix} \right)}} & \left( {{Expression}\mspace{14mu} 2} \right)\end{matrix}$

A plurality of conventional camera calibration techniques and problemstherewith will be described in turn.

In Roger Y. Tsai, “A Versatile Camera Calibration Technique forHigh-Accuracy 3D Machine Vision Metrology Using Off-The-Shelf TV Camerasand Lenses”, IEEE Journal of Robotics and Automation, Vol. 3, pp.323-344, 1987, with respect to sets of world coordinates and imagecoordinates, a camera is calibrated by minimizing the sum total of thedistances (reprojection errors) between points at which the worldcoordinates are projected onto an image using camera parameters and thecorresponding points on the image. It is therefore necessary forthree-dimensional coordinates in a three-dimensional space and pixellocations in a two-dimensional image to be associated.

In Zhengyou Zhang, “A Flexible New Technique for Camera Calibration”,IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 22,pp. 1330-1334, 2000, calibration indexes are set up at a plurality ofdifferent depths and are captured by one camera. With respect to sets ofimage coordinates and world coordinates on planes thus obtained, thecamera is calibrated by minimizing the sum total of the squares of thedistances between points at which the world coordinates are projectedonto an image using camera parameters and corresponding points on theimage. It is therefore necessary for three-dimensional coordinates in athree-dimensional space and pixel locations in a two-dimensional imageto be associated.

In Japanese Patent No. 4681856, information is input regardingcalibration points on planes on which three-dimensional coordinates andpixel values in a two-dimensional image are associated across aplurality of frames. The camera parameters are decided in such a waythat calibration points that are present on a plane in world coordinatesand calibration points in image coordinates are subjected to a planarprojective transformation. It is therefore necessary forthree-dimensional coordinates in a three-dimensional space and pixellocations in a two-dimensional image to be associated.

In Japanese Patent No. 5580164, two sets of three-dimensional locationsare obtained using a three-dimensional laser scanner and a stereocamera. These two sets of three-dimensional locations are associated,and the stereo camera is calibrated based on the three-dimensionallocations of the three-dimensional laser scanner, which has greaterdistance measurement precision than the stereo camera. Manuallyassociating the three-dimensional points is complex, and a dedicatedcalibration index is necessary in the case where this process is to becarried out automatically. Furthermore, in the case where an error isincluded in camera parameters in a small stereo camera having a shortbaseline length, the decline in distance measurement precision is largecompared to a stereo camera having a long baseline length. Therefore, inthe case where the baseline length is short compared to the subjectdistance, there is a possibility of there being erroneous correspondencewith the three-dimensional locations of the three-dimensional laserscanner.

Stereo cameras are used for peripheral monitoring, driving support, andthe like in mobile bodies such as cars and drones. A wide-angle camerais preferred for such purposes. A general stereo camera intended forsuch distance measurement requires calibration at the time ofmanufacturing. Furthermore, recalibration of the camera is necessary fordistortion caused by changes due to aging and impacts.

Ordinarily, the calibration performed at the time of manufacturing andthe recalibration are carried out using dedicated calibration equipment.A calibration index having a known three-dimensional structure is usedin these calibrations. A calibration index having high processingprecision and a wide imaging space are therefore necessary. Furthermore,in this kind of calibration of a wide-angle camera, large-scalecalibration equipment is necessary to arrange a calibration index acrossthe entire field of view.

The present disclosure has been invented in light of the aforementionedproblems, and the purpose thereof is to calibrate various types ofcameras without using a calibration index having a knownthree-dimensional structure.

A camera parameter calculation apparatus according to an aspect of thepresent disclosure includes: a point group obtainer that obtainsthree-dimensional point group data indicating three-dimensionalcoordinates of a plurality of three-dimensional points included in acommon imaging space of one or more cameras; a camera parametercalculator that (i) calculates image coordinates of correspondingpoints, for each of the plurality of three-dimensional points, in one ormore images captured using the one or more cameras, based on thethree-dimensional point group data and one or more initial cameraparameters of the one or more cameras, and (ii) calculates one or morecamera parameters of the one or more cameras, based on pixel values,included in the one or more images, at the image coordinates; and acamera parameter outputter that outputs the one or more cameraparameters, in which the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship.

According to this configuration, camera parameters are evaluated basedon pixel values at pixel coordinates obtained by projectingthree-dimensional coordinates onto an image using the camera parameters,and thus the camera parameters can be calculated, namely a camera can becalibrated, without using a calibration index having a knownthree-dimensional structure. A camera can therefore be calibratedwithout associating three-dimensional coordinates in a three-dimensionalspace and pixel locations in a two-dimensional image.

Furthermore, calculation of the image coordinates may include the cameraparameter calculator converting the plurality of three-dimensionalcoordinates into the image coordinates in the one or more imagescorresponding to the one or more cameras, based on the one or moreinitial camera parameters corresponding to the one or more cameras.

According to this configuration, the image coordinates can be calculatedfrom the three-dimensional coordinates using a typical coordinateconversion procedure in which camera parameters corresponding to acamera model such as a pinhole camera model serve as a medium, forexample.

Furthermore, the one or more cameras may include two cameras, the cameraparameter calculator may calculate the one or more camera parameters onthe basis of a plurality of differences, and each of the plurality ofdifferences may be a difference between a pixel value at a correspondingpoint, for one three-dimensional point from among the plurality ofthree-dimensional points, in a first image captured by a first cameraincluded in the two cameras, and a pixel value at a corresponding point,for the one three-dimensional point, in a second image captured by asecond camera included in the two cameras. The difference may be anabsolute value of the difference between the pixel values, or may be asquare value of the difference between the pixel values.

According to this configuration, if the camera parameters are correct,one three-dimensional point is correctly projected onto thecorresponding points in the individual images, and therefore theplurality of differences all approach 0. That is, the total of theplurality of differences being large means that errors in thecorresponding points in the individual images are large, namely thaterrors in the camera parameters are large. Therefore, for example, anevaluation function defined by the total of the differences isintroduced, and the camera parameters are updated in such a way that theevaluation function decreases, by means of a well-known procedure suchas the gradient descent method. Thus, camera calibration can be carriedout with reduced errors in the camera parameters.

Furthermore, the one or more cameras may be two or more cameras, thecamera parameter calculator may calculate the one or more cameraparameters on the basis of a plurality of differences, and each of theplurality of differences may be a difference between one pixel valuefrom among pixel values at corresponding points, for onethree-dimensional point from among the plurality of three-dimensionalpoints, in individual images captured by the two or more cameras, and anaverage value for said pixel values. The difference may be an absolutevalue of the difference between the pixel values, or may be a squarevalue of the difference between the pixel values.

According to this configuration, if the camera parameters are correct,one three-dimensional point is correctly projected onto thecorresponding points in the individual images, and therefore theplurality of differences all approach 0. That is, the total of theplurality of differences being large means that errors in thecorresponding points in the individual images are large, namely thaterrors in the camera parameters are large. Therefore, for example, anevaluation function defined by the total of the differences isintroduced, and the camera parameters are updated in such a way that theevaluation function decreases, by means of a well-known procedure suchas the gradient descent method. Thus, camera calibration can be carriedout with reduced errors in the camera parameters.

Furthermore, the one or more cameras may be two or more cameras, and thecamera parameter calculator may calculate the one or more cameraparameters on the basis of a degree of similarity of pixel valuepatterns in neighboring pixels of the corresponding points,corresponding to the same three-dimensional point, in the individualimages. Specifically, the camera parameter calculator may calculate theone or more camera parameters on the basis of a plurality of normalizedcross-correlations, and each of the plurality of normalizedcross-correlations may be a correlation between pixel values included inthe vicinity of the corresponding points, for the one three-dimensionalpoint from among the plurality of three-dimensional points, in theindividual images captured by the two or more cameras.

According to this configuration, even in the case where there is a gaindifference (overall luminance difference caused by an inconsistency inexposure) in the individual images, it is possible to eliminate the gaindifference and know the magnitude of the errors in the correspondingpoints on the basis of the similarity between the pixel value patterns.

Furthermore, the camera parameter calculator may exclude, fromcalculation of the one or more camera parameters, a three-dimensionalpoint at which a plurality of the corresponding points having a distanceof separation that is equal to or less than a threshold value areobtained in at least any one image, from among the plurality ofthree-dimensional points.

In this configuration, the plurality of the corresponding points havinga distance of separation that is equal to or less than a threshold valueare corresponding points for a plurality of three-dimensional pointsthat are present in a region extending in substantially one directionfrom a camera. Therefore, there is a possibility of a rearthree-dimensional object being covered by a front three-dimensionalobject. Hence, when the camera parameters are calculated,three-dimensional points at which a plurality of corresponding pointshaving a distance of separation that is equal to or less than athreshold value are obtained are excluded from the calculation of thecamera parameters. Thus, pixel values of corresponding points that mayindicate pixel values that are different from the original values can beexcluded from the calculation of evaluation values, and evaluationvalues can be calculated with the effect of covering being eliminated.

Furthermore, the camera parameter calculator may calculate the one ormore camera parameters from three-dimensional points having excludedtherefrom one or more three-dimensional points at which a luminancegradient at a corresponding point of at least one image from among theone or more images is less than a threshold value, from among theplurality of three-dimensional points.

According to this configuration, camera parameters are calculatedexcluding three-dimensional points located in regions having a smallluminance gradient in the camera images, and therefore the calculationamount can be reduced with calculations using three-dimensional pointshaving little contribution to the evaluation values being omitted.

The three-dimensional point group data may indicate three-dimensionallocations of the plurality of three-dimensional points on the basis ofthe reflection of measurement light emitted from a predetermineddistance measurement viewpoint, and the camera parameter calculator mayexclude, from calculation of the one or more camera parameters, twothree-dimensional points, included in the plurality of three-dimensionalpoints, with which the distance between the two three-dimensional pointsis greater than a threshold value and an angle formed by directionvectors of the measurement light toward the two three-dimensional pointsis less than a threshold value.

In this configuration, the two three-dimensional points are a gap regionlocated at a boundary between objects or a region having considerablesurface unevenness in the three-dimensional point group data, and gapsare liable to occur also in the pixel values of corresponding points inimages. When the pixel values of corresponding points such as these areused in the calculation of evaluation values, there is concern that theconvergence of the camera parameters will be caused to deteriorate dueto the evaluation values changing too sharply for errors in thecorresponding points. For this kind of problem, in the aforementionedconfiguration, boundaries between objects and regions havingconsiderable surface unevenness can be avoided, and evaluation valuescan be calculated using pixel values of appropriate regions.

Furthermore, the three-dimensional point group data may indicatethree-dimensional locations of the plurality of three-dimensional pointsand intensity values of return light of measurement light from eachthree-dimensional point, based on the reflection of the measurementlight emitted from a predetermined distance measurement viewpoint, andthe camera parameter calculator may calculate the one or more cameraparameters using only a plurality of three-dimensional points that arevisible within a predetermined vicinity from the distance measurementviewpoint and have a difference between the intensity values that iswithin a range decided using a first threshold value and a secondthreshold value, from among the plurality of three-dimensional points.

According to this configuration, the camera parameters can be calculatedusing only a plurality of three-dimensional points that are within arange in which the intensity of measurement light, namely thereflectance of an object, changes in a smooth manner. For example, inregions in which there is a gap in the reflectance of objects due to aboundary between objects or the like, gaps are liable to occur also inthe pixel values of the corresponding points in images. When the pixelvalues of corresponding points such as these are used in the calculationof evaluation values, there is concern that the convergence of thecamera parameters will be caused to deteriorate due to the evaluationvalues changing too sharply for errors in the corresponding points. Forthis kind of problem, in the aforementioned configuration, regions inwhich there is an excessive difference in the reflectance of an objectcan be avoided, and evaluation values can be calculated using pixelvalues of appropriate regions. Furthermore, regions in which changes inreflectance occur excessively, such as uniform continuous surfaces, forexample, are also excluded from the calculation of evaluation values assuch regions hinder convergence of the camera parameters,

Furthermore, the three-dimensional point group data may be data obtainedby measuring distances of the plurality of three-dimensional pointsusing a three-dimensional laser scanner.

According to this configuration, the three-dimensional point group datacan be obtained from a three-dimensional laser scanner that is generallyeasy to use.

Furthermore, the three-dimensional point group data may indicatethree-dimensional locations of the plurality of three-dimensional pointsand the color of an object at each three-dimensional point, based on thereflection of measurement light emitted from a predetermined distancemeasurement viewpoint and color imaging from the distance measurementviewpoint, and the camera parameter calculator may calculate the one ormore camera parameters using only a plurality of three-dimensionalpoints that are visible within a predetermined vicinity from thedistance measurement viewpoint and have a difference between the colorsof the objects that is within a range decided using a first thresholdvalue and a second threshold value, from among the plurality ofthree-dimensional points.

According to this configuration, the camera parameters can be calculatedusing only a plurality of three-dimensional points within a range inwhich the color of an object changes in a smooth manner. For example, inregions in which there is a gap in the colors of objects due to aboundary between objects or the like, gaps occur also in the colors ofthe corresponding points in the images. When the pixel values ofcorresponding points such as these are used in the calculation ofevaluation values, there is concern that the convergence of the cameraparameters will be caused to deteriorate due to the evaluation valueschanging too sharply for errors in the corresponding points. For thiskind of problem, in the aforementioned configuration, regions in whichthere is an excessive difference in the colors of objects can beavoided, and evaluation values can be calculated using pixel values ofappropriate regions. Furthermore, for example, regions in which changesin color occur excessively, such as uniform continuous surfaces, arealso excluded from the calculation of evaluation values as such regionshinder convergence of the camera parameters.

Furthermore, the three-dimensional point group data may indicatethree-dimensional locations of the plurality of three-dimensional pointsand the color of an object at each three-dimensional point, based on thereflection of measurement light emitted from a predetermined distancemeasurement viewpoint and color imaging from the distance measurementviewpoint, each of the one or more cameras may be a color camera, andthe camera parameter calculator may calculate a camera parameter of onecamera from among the one or more cameras on the basis of a plurality ofdifferences, and the plurality of differences may be differences betweena color indicated by a pixel value at a corresponding point, for onethree-dimensional point from among the plurality of three-dimensionalpoints, in an image captured by the one camera, and the color of theobject at the one three-dimensional point indicated by thethree-dimensional point group data.

According to this configuration, by using information regarding thecolor of an object indicated by the three-dimensional point group data,a single camera can be calibrated and a plurality of cameras can becalibrated one at a time.

Furthermore, the point group obtainer may obtain the three-dimensionalpoint group data from a three-dimensional laser scanner provided with acolor camera that color-images a distance measurement space.

According to this configuration, the three-dimensional point group datacan be obtained together with color information from a three-dimensionallaser scanner.

It should be noted that general or specific aspects hereof may berealized by a system, a method, an integrated circuit, a computerprogram, or a recording medium such as a computer-readable CD-ROM, andmay be realized by an arbitrary combination of a system, a method, anintegrated circuit, a computer program, and a recording medium.

EMBODIMENT 1

Hereinafter, an embodiment of the present disclosure will be describedwith reference to the drawings. The present disclosure can beimplemented in one or more cameras; however, to simplify thedescription, here, the present disclosure will be described using theexample of a stereo camera consisting of a left camera and a rightcamera.

FIG. 1 is a block diagram depicting an example of a functionalconfiguration of a camera parameter calculation apparatus ofembodiment 1. In FIG. 1, a camera parameter calculation apparatus 101includes a frame memory 104, an initial camera parameter storage 105, apoint group obtainer 107, a camera parameter calculator 108, and acamera parameter outputter 109. The camera parameter calculationapparatus 101 calibrates a left camera 102 and a right camera 103 usinga three-dimensional laser scanner 106. It should be noted thatcalibrating a camera in the present specification means obtaining thecamera parameters of an actual camera. Consequently, the cameraparameter calculation apparatus of the present specification issynonymous with a camera calibration apparatus.

The operations of each constituent element depicted in FIG. 1 will bedescribed hereinafter.

The left camera 102 captures a first space that is an imaging space, andsends a captured first image to the frame memory 104.

The right camera 103 captures a second space that is an imaging space,and sends a captured second image to the frame memory 104. The firstspace and the second space include a third space that is a common space.The third space may include one or more objects and/or one or moreorganisms. A subject that can be approximated by means of Lambertianreflectance is preferred from the standpoint that the way the surface ofthe subject appears (the color at a certain point) according to thecamera location does not change.

The frame memory 104 receives and stores the first image and the secondimage.

The initial camera parameter storage 105 retains initial cameraparameters in advance. The initial camera parameters may be the cameraparameters included in expression 1, for example, or may be designvalues that are set and/or used when setting the stereo camera.Alternatively, in accordance with the schemes and the like according tothe aforementioned Tsai (Roger Y. Tsai, “A Versatile Camera CalibrationTechnique for High-Accuracy 3D Machine Vision Metrology UsingOff-The-Shelf TV Cameras and Lenses”, IEEE Journal of Robotics andAutomation, Vol. 3, pp. 323-344, 1987) and Zhang (Zhengyou Zhang, “AFlexible New Technique for Camera Calibration”, IEEE Transactions onPattern Analysis and Machine Intelligence, Vol. 22, pp. 1330-1334,2000), the camera parameters may be estimated with rough precision byobtaining sets of world coordinates and image coordinates having acorresponding relationship, by manual operation a necessary number oftimes using a calibration index. Here, in the scheme according to Tsai,at least 13 sets of world coordinates and image coordinates arenecessary. Furthermore, in the scheme according to Zhang, imagingcarried out at least three times and at least 13 sets of worldcoordinates and image coordinates are necessary.

The three-dimensional laser scanner 106 scans a space that includes theaforementioned third space with laser light, and measures thethree-dimensional locations of each of a plurality of points included inthe space that includes the third space, in other words, a plurality ofthree-dimensional points. Data in which these measured three-dimensionallocations of N points are represented by world coordinates (X, Y, Z) isreferred to as three-dimensional point group data. The three-dimensionallaser scanner 106 sends three-dimensional point group data to the pointgroup obtainer 107.

The point group obtainer 107 receives the three-dimensional point groupdata from the three-dimensional laser scanner 106.

The camera parameter calculator 108 receives the first image and thesecond image from the frame memory 104, the initial camera parametersfrom the initial camera parameter storage 105, and the three-dimensionalpoint group from the point group obtainer 107, and obtains cameraparameters by means of the procedure depicted in FIG. 2.

The camera parameter outputter 109 outputs the camera parameterscalculated by the camera parameter calculator 108.

The camera parameter calculation apparatus 101 may be realized by meansof a computer apparatus (not depicted) consisting of a processor, amemory, an interface circuit, and the like, and the constituent elementsof the camera parameter calculation apparatus 101 may be softwarefunctions achieved by the processor executing a program recorded in thememory in advance. Furthermore, the camera parameter calculationapparatus 101 may be realized by means of a dedicated hardware circuitthat carries out the aforementioned operation.

Furthermore, the camera parameter calculation apparatus 101 does notnecessarily have to be realized by means of a single computer apparatus,and may be realized by means of a distributed processing system (notdepicted) that includes a terminal apparatus and a server. As anexample, the frame memory 104, the initial camera parameter storage 105,the point group obtainer 107, and the camera parameter outputter 109 maybe provided in the terminal apparatus, and the functions of some or allof the camera parameter calculator 108 may be executed by the server. Inthis case, the transfer of data among the constituent elements iscarried out via a communication line connected to the terminal apparatusand the server.

FIG. 2 is a flowchart depicting an example of camera parametercalculation processing S300.

The camera parameter calculator 108 receives the first image captured bythe left camera 102 stored in the frame memory 104, and the second imagecaptured by the right camera 103 stored in the frame memory 104 (S301).Hereinafter, images captured by the cameras and received from thecameras are also referred to as captured images or camera images.

The camera parameter calculator 108 obtains initial camera parameters ofeach of the left camera 102 and the right camera 103 from the initialcamera parameter storage 105 (S302).

The point group obtainer 107 receives three-dimensional point group datameasured by the three-dimensional laser scanner 106, the point groupobtainer 107 sends the three-dimensional point group data to the cameraparameter calculator 108, and the camera parameter calculator 108receives the three-dimensional point group data (S303).

The camera parameter calculator 108 calculates image coordinates(x_(Lk), y_(Lk)) and (x_(Rk), y_(Rk)) by means of expressions 1 and 2from the world coordinates (X, Y, Z). (x_(Lk), y_(Lk)) are imagecoordinates of the k^(th) corresponding point included in the firstimage corresponding to the k^(th) three-dimensional point, and (x_(Rk),y_(Rk)) are image coordinates of the k^(th) corresponding point includedin the second image corresponding to the k^(th) three-dimensional point.

An evaluation function J (expression 3) is calculated (S304); theevaluation function J is defined by the absolute value sum of thedifferences between the pixel value of a point included in the firstimage corresponding to the k^(th) three-dimensional point included inthe plurality of three-dimensional points obtained by thethree-dimensional laser scanner 106, namely the k^(th) correspondingpoint included in the first image corresponding to the k^(th)three-dimensional point, and the pixel value of a point included in thesecond image corresponding to the k^(th) three-dimensional point, namelythe k^(th) corresponding point included in the second imagecorresponding to the k^(th) three-dimensional point.

$\begin{matrix}{J = {\frac{1}{N}{\sum\limits_{k = 1}^{N}\; {{{I_{L}\left( {x_{Lk},y_{Lk}} \right)} - {I_{R}\left( {x_{Rk},y_{Rk}} \right)}}}}}} & \left( {{Expression}\mspace{14mu} 3} \right)\end{matrix}$

Here, N is the number of three-dimensional points at which pixel valuesare compared, and all or some of the points obtained by thethree-dimensional laser scanner are selected. “Some are selected” maymean that regions which have the same values due to continuous pixelvalues in the images and which do not affect the calculation of anevaluation value J are excluded, for example.

I_(L)(x, y) is a pixel value at the image coordinates (x, y) of thefirst image, and I_(R)(x, y) is a pixel value at the image coordinates(x, y) of the second image. The pixel values are luminance values in thecase where the first image and the second image are monochrome images,and the pixel values are color vectors in the case where the first imageand the second image are color images. It should be noted that theabsolute value of the difference between color vectors means thedistance between color vectors. In order to eliminate the effect ofchromatic aberration, only the components of one specific color may beused from among the color components making up a color vector.

Each of the plurality of three-dimensional points included in thethree-dimensional point group data is projected onto the first imageusing the camera parameters of the left camera 102, and is projectedonto the second image using the camera parameters of the right camera103.

Here, projecting refers to obtaining calculated corresponding points incamera images corresponding to a three-dimensional point, specifically,calculating image coordinates in the first image by carrying out acoordinate conversion based on the camera parameters of the left camera102, and calculating image coordinates in the second image by carryingout a coordinate conversion based on the camera parameters of the rightcamera 103, with respect to each of the world coordinates for aplurality of three-dimensional points included in the three-dimensionalpoint group data. For the coordinate conversions, projections based onthe matrix calculation described by expression 1 may be used, forexample. The image coordinates may be calculated with sub-pixelprecision, and for pixel coordinates at this sub-pixel precision, pixelvalues may be calculated with decimal precision from an interpolationcalculation such as a bilinear or bicubic interpolation calculation.

Furthermore, for the addition of the N points in the calculation of anevaluation value J, a weighting may be applied to the absolute value ofthe difference between pixel values. For example, a weighting for apoint group in which the color of the subject continuously changes ismade heavier, or a weighting for a point group in which the surface ofan object is considerably uneven is made lighter. These weightings makechanges in the evaluation values J smooth and facilitate minimization ofthe evaluation values J with respect to continuous changes in cameraparameters.

In the case where the calculation of evaluation values J within a searchrange for the camera parameters is completed or an evaluation value J issmaller than a threshold value, the iterative calculation ends (end inS305). However, in the case where the iterative calculation is tocontinue (continue in step S305), the camera parameters are changedwithin the search range (S306). A range in which each camera parametercan be obtained is set in advance as the search range for the cameraparameters. For example, it is sufficient for the image center locationC_(x), C_(y), the focal length f, and the imaging element length d′_(x),d′_(y) to each be ±5% of the design values. Furthermore, for rotationcomponents R_(x), R_(y), and R_(z) of the camera location andtranslational movement components T_(x), T_(y), and T_(z), it issufficient for the positional relationship between the three-dimensionallaser scanner 106 and the cameras 102 and 103 to be measured using ascale or the like, and for the angle to be ±10 degrees of themeasurement value and the translational movement to be ±0.2 m.

It should be noted that in order to reduce the calculation time for therepeated processing in steps S304 to S306, the range may be limited tothe vicinity of the initial camera parameters, and the steepest descentmethod or the like may be applied using the gradient of the evaluationfunction.

Lastly, camera parameters having the lowest evaluation values areselected from sets of camera parameters and evaluation values calculatedby means of the iterative calculation of the aforementioned steps S304to S306, and the selected camera parameters are output (S307).

It being possible to calibrate a camera in accordance with this kind ofprocedure will be described in steps. In the evaluation function forcalibrating a camera, it is necessary for the evaluation value to be thesmallest at the correct camera parameter. Due to this property of theevaluation function, the evaluation value is minimized, and it therebybecomes possible to search for the correct camera parameter.

From all of the correct camera parameters, the value of only one cameraparameter is changed. At such time, if the evaluation value J has adownward-convex function form with which the correct camera parameter isminimized for all of the camera parameters, the evaluation function J isdownwardly convex with respect to all of the camera parameters. Here,calculating an extreme value with only one camera parameter λ beingchanged corresponds to a partial derivative ∂J/∂λ, and all partialderivatives becoming 0 at a certain point corresponds to a totalderivative dJ/dΩ of the entire function being 0 (expression 4).

$\begin{matrix}{\frac{d\; J}{d\; \Omega} = {{{\frac{\partial J}{\partial\lambda_{1}}\frac{\partial\lambda_{1}}{\partial\Omega}} + {\frac{\partial J}{\partial\lambda_{2}}\frac{\partial\lambda_{2}}{\partial\Omega}} + \ldots + {\frac{\partial J}{\partial\lambda_{m}}\frac{\partial\lambda_{m}}{\partial\Omega}}} = 0}} & \left( {{Expression}\mspace{14mu} 4} \right)\end{matrix}$

Here, m represents the number of camera parameters, λ₁ to λ_(m)represent individual camera parameters for focal length and the like,and Ω represents the entirety of the camera parameters in which theindividual camera parameters are combined.

Since camera parameters are different according to the camera model, anexample will be described using the 10 camera parameters used in thescheme of Tsai given in Roger Y. Tsai, “A Versatile Camera CalibrationTechnique for High-Accuracy 3D Machine Vision Metrology UsingOff-The-Shelf TV Cameras and Lenses”, IEEE Journal of Robotics andAutomation, Vol. 3, pp. 323-344, 1987. For the camera parameters of thispinhole camera model, the x component and y component in the center ofan image are taken as C_(x) and C_(y), the focal length is taken as f,the length in the x direction of one imaging element is taken as d′_(x),the x, y, and z components of rotation for reference for the worldcoordinates of the camera are respectively taken as R_(x), R_(y), andR_(z), and the x, y, and z components of a translation for reference forthe world coordinates of the camera are respectively taken as T_(x),T_(y), and T_(z). At such time, the evaluation value J becomes afunction in which these 10 camera parameters are variables.

The present scheme can be carried out by imaging an actual space, andcan be carried out using CG data. Hereinafter, camera calibrationcarried out using CG data will be described as an example.

CG mimicking a parking lot depicted in FIG. 3 is created. The rightcamera is separated 15 mm horizontally from the left camera, and theoptical axis of the right camera is parallel with that of the leftcamera. Furthermore, it is assumed that the cameras are fish-eyecameras.

Evaluation values J obtained when only one camera parameter of the rightcamera is changed from a state in which the values of all of the cameraparameters are correct are calculated with respect to the aforementionedCG model. These evaluation values J are depicted in FIGS. 4 to 13 for 10camera parameters in which the horizontal axes indicate camera parametervalues and the vertical axes indicate evaluation values J. The cameraparameters that are changed are C_(x) in FIG. 4, C_(y) in FIG. 5, f inFIG. 6, d′_(x) in FIG. 7, R_(x) in FIG. 8, R_(y) in FIG. 9, R_(z) inFIG. 10, T_(x) in FIG. 11, T_(y) in FIG. 12, and T_(z) in FIG. 13.Furthermore, the correct values for each camera parameter are asfollows. More specifically, C_(x) is 640 pixels, C_(y) is 480 pixels, fis 1.12 mm, d′_(x) is 2.75 μm, R_(x) is 90°, R_(y) is 0°, R₇ is 0°,T_(x) is 0 mm, T_(y) is 0 mm, and T_(z) is 0 mm.

In each of FIGS. 4 to 13, the evaluation values J are downwardly convexin the vicinity of the correct camera parameter, and the cameraparameter with which the evaluation value J is minimized and the correctcamera parameter match. Based on the above, camera calibration ispossible with the present scheme.

It should be noted that in the case where there are three or morecameras, it is sufficient for the evaluation function J of expression 3to be expanded to expression 5 with the number of cameras as n.

$\begin{matrix}{J = {\frac{1}{N \cdot {{}_{}^{}{}_{}^{}}}{\sum\limits_{i = 1}^{n}\; {\sum\limits_{j = 1}^{n}\; {\sum\limits_{k = 1}^{N}\; {{{I_{i}\left( {x_{ik},y_{ik}} \right)} - {I_{j}\left( {x_{jk},y_{jk}} \right)}}}}}}}} & \left( {{Expression}\mspace{14mu} 5} \right)\end{matrix}$

Here, the image coordinates of the k^(th) corresponding point includedin an i^(th) camera image and a j^(th) camera image are taken as(x_(ik), y_(ik)) and (x_(jk), y_(jk)). I_(i)(x, y) represents a pixelvalue for an RGB value or a luminance value at the image coordinates (x,y) of an i^(th) camera image, and I_(j)(x, y) represents a pixel valuefor an RGB value or a luminance value at the image coordinates (x, y) ofa j^(th) camera image. The other variables are the same as the variablesincluded in expression 3, and therefore a description thereof has beenomitted.

As mentioned above, camera parameters are evaluated based on pixelvalues at pixel coordinates obtained by projecting three-dimensionalcoordinates onto an image using the camera parameters, and thus thecamera parameters can be calculated, namely a camera can be calibrated,without using a calibration index having a known three-dimensionalstructure. A camera can therefore be calibrated without associatingthree-dimensional coordinates in a three-dimensional space and pixellocations in a two-dimensional image.

EMBODIMENT 2

It is not necessary for the evaluation function in embodiment 1 to berestricted to the absolute value sum of the differences between pixelvalues indicated in expression 3. In embodiment 2, the case where theevaluation function is the square sum of the differences between pixelvalues will be described.

In embodiment 2, compared to embodiment 1, the only difference is theevaluation function used for calculating evaluation values. Thefunctional configuration of the camera parameter calculation apparatusaccording to embodiment 2 is substantially the same as that of thecamera parameter calculation apparatus 101 described in embodiment 1,and therefore a description thereof has been omitted.

FIG. 14 is a flowchart depicting an example of camera parametercalculation processing S310 according to embodiment 2. In FIG. 14, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted. Step S314calculates an evaluation function J (expression 6) defined by the squaresum of the differences between corresponding pixel values of a stereocamera.

$\begin{matrix}{J = {\frac{1}{N}{\sum\limits_{k = 1}^{N}\; \left( {{I_{L}\left( {x_{Lk},y_{Lk}} \right)} - {I_{R}\left( {x_{Rk},y_{Rk}} \right)}} \right)^{2}}}} & \left( {{Expression}\mspace{14mu} 6} \right)\end{matrix}$

Here, the variables of expression 6 are the same as the variablesincluded in expression 3, and therefore a description thereof has beenomitted.

It should be noted that in the case where there are three or morecameras, it is sufficient for the evaluation function J of expression 6to be expanded to expression 7.

$\begin{matrix}{J = {\frac{1}{N \cdot {{}_{}^{}{}_{}^{}}}{\sum\limits_{i = 1}^{n}\; {\sum\limits_{j = 1}^{n}\; {\sum\limits_{k = 1}^{N}\; \left( {{I_{i}\left( {x_{ik},y_{ik}} \right)} - {I_{j}\left( {x_{jk},y_{jk}} \right)}} \right)^{2}}}}}} & \left( {{Expression}\mspace{14mu} 7} \right)\end{matrix}$

Here, the variables of expression 7 are the same as the variablesincluded in expression 5, and therefore a description thereof has beenomitted.

As mentioned above, similar to embodiment 1, a camera can be calibratedwithout associating three-dimensional coordinates in a three-dimensionalspace and pixel locations in a two-dimensional image.

EMBODIMENT 3

It is not necessary for the evaluation functions in embodiments 1 and 2to be restricted to the absolute value sum or the square sum of thedifferences between pixel values indicated in expressions 3 and 6. Inembodiment 3, the case where the evaluation function is the absolutevalue sum of the differences with an average pixel value will bedescribed.

In embodiment 3, compared to embodiment 1, the only difference is theevaluation function for calculating evaluation values. The functionalconfiguration of the camera parameter calculation apparatus according toembodiment 3 is substantially the same as that of the camera parametercalculation apparatus 101 described in embodiment 1, and therefore adescription thereof has been omitted.

FIG. 15 is a flowchart depicting an example of camera parametercalculation processing S320 according to embodiment 3. In FIG. 15, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted. Step S324calculates an evaluation function J (expression 8) defined by theabsolute value sum of the differences between corresponding pixel valuesof a stereo camera and an average pixel value.

$\begin{matrix}\left. {{J = {{\frac{1}{2N}{\sum\limits_{k = 1}^{N}\; \left( \left. {{I_{L}\left( {x_{Lk},y_{Lk}} \right)} - {I^{\prime}}_{k}} \right) \right.}} + \left. {{I_{R}\left( {x_{Rk},y_{Rk}} \right)} - {I^{\prime}}_{k}} \right)}}} \right) & \left( {{Expression}\mspace{14mu} 8} \right)\end{matrix}$

Here, I′_(k) represents the average in all camera images of the pixelvalue of the k^(th) corresponding point. The other variables are thesame as the variables included in expression 3, and therefore adescription thereof has been omitted.

It should be noted that in the case where there are three or morecameras, it is sufficient for the evaluation function J of expression 8to be expanded to expression 9.

$\begin{matrix}{J = {\frac{1}{N \cdot {\, n}}{\sum\limits_{i = 1}^{n}\; {\sum\limits_{k = 1}^{N}\; {{{I_{i}\left( {x_{ik},y_{ik}} \right)} - {I^{\prime}}_{k}}}}}}} & \left( {{Expression}\mspace{14mu} 9} \right)\end{matrix}$

Here, the variables of expression 9 are the same as the variablesincluded in expressions 3 and 5, and therefore a description thereof hasbeen omitted.

As mentioned above, similar to embodiment 1, a camera can be calibratedwithout associating three-dimensional coordinates in a three-dimensionalspace and pixel locations in a two-dimensional image.

EMBODIMENT 4

It is not necessary for the evaluation functions in embodiments 1 to 3to be restricted to the absolute value sum or the square sum of thedifferences between pixel values, or the absolute value sum of thedifferences with an average pixel value, indicated in expressions 3, 6,and 8. In embodiment 4, the case where the evaluation function is thesquare sum of the differences with an average pixel value will bedescribed.

In embodiment 4, compared to embodiment 1, the only difference is theevaluation function for calculating evaluation values. The functionalconfiguration of the camera parameter calculation apparatus according toembodiment 4 is substantially the same as that of the camera parametercalculation apparatus 101 described in embodiment 1, and therefore adescription thereof has been omitted.

FIG. 16 is a flowchart depicting an example of camera parametercalculation processing S330 according to embodiment 4. In FIG. 16, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted. Step S334calculates an evaluation function J (expression 10) defined by thesquare sum of the differences between corresponding pixel values of astereo camera and an average pixel value.

$\begin{matrix}{J = {\frac{1}{2N}{\sum\limits_{k = 1}^{N}\; \left( {\left( {{I_{L}\left( {x_{Lk},y_{Lk}} \right)} - {I^{\prime}}_{k}} \right)^{2} + \left( {{I_{R}\left( {x_{Rk},y_{Rk}} \right)} - {I^{\prime}}_{k}} \right)^{2}} \right)}}} & \left( {{Expression}\mspace{14mu} 10} \right)\end{matrix}$

Here, the variables of expression 10 are the same as the variablesincluded in expression 8, and therefore a description thereof has beenomitted.

It should be noted that in the case where there are three or morecameras, it is sufficient for the evaluation function J of expression 10to be expanded to expression 11.

$\begin{matrix}{J = {\frac{1}{N \cdot {\, n}}{\sum\limits_{i = 1}^{n}\; {\sum\limits_{k = 1}^{N}\; \left( {{I_{i}\left( {x_{ik},y_{ik}} \right)} - {I^{\prime}}_{k}} \right)^{2}}}}} & \left( {{Expression}\mspace{14mu} 11} \right)\end{matrix}$

Here, the variables of expression 11 are the same as the variablesincluded in expressions 3 and 8, and therefore a description thereof hasbeen omitted.

As mentioned above, similar to embodiment 1, a camera can be calibratedwithout associating three-dimensional coordinates in a three-dimensionalspace and pixel locations in a two-dimensional image.

EMBODIMENT 5

In embodiment 5, camera parameters are calculated on the basis of adegree of similarity between patterns in neighboring pixels of imagecoordinates of individual cameras corresponding to three-dimensionalpoint group data, and the effect of a difference between pixel valuesI_(L)(x, y) and I_(R)(x, y) caused by a gain difference between camerasis thereby reduced.

Hereinafter, as a specific example, the case where the evaluationfunction is a normalized cross-correlation will be described.

In embodiment 5, compared to embodiment 1, the only difference is theevaluation function for calculating evaluation values. The functionalconfiguration of the camera parameter calculation apparatus according toembodiment 5 is substantially the same as that of the camera parametercalculation apparatus 101 described in embodiment 1, and therefore adescription thereof has been omitted.

FIG. 17 is a flowchart depicting an example of camera parametercalculation processing S340 according to embodiment 5. In FIG. 17, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted. Step S344calculates an evaluation function J (expression 12) defined by thenormalized cross-correlation of corresponding pixel values of a stereocamera.

$\begin{matrix}{J = {1 - {\frac{1}{N}\; {\sum\limits_{k = 1}^{N}\; \left( \frac{\sum\limits_{i = 1}^{m}\; {M_{Lki}M_{Rki}}}{\sqrt{\sum\limits_{i = 1}^{m}\; {{M_{Lki}}^{2} \cdot {\sum\limits_{i = 1}^{m}\; {M_{Rki}}^{2}}}}} \right)}}}} & \left( {{Expression}\mspace{14mu} 12} \right)\end{matrix}$

Here, three-dimensional point groups to be compared are projected ontocamera images captured by each of a left camera and a right cameraaccording to camera parameters for the respective three-dimensionalpoint groups, and image coordinates are obtained. m pixels are selectedfrom the vicinity of these image coordinates. For example, pixels fromwithin a circle centered about a projected pixel are selected. Thei^(th) pixel values of the selected m pixels of the left camera and theright camera are taken as M_(Lki) and M_(Rki). The other variables arethe same as the variables included in expression 3, and therefore adescription thereof has been omitted.

As mentioned above, by using normalized cross-correlations of pixelvalues, camera calibration can be carried out without being affected bygain differences between the left camera and the right camera.

It should be noted that in the case where there are three or morecameras, it is sufficient for the evaluation function J of expression 12to be expanded to expression 13.

$\begin{matrix}{J = {1 - {\frac{1}{N}\; {\sum\limits_{k = 1}^{N}\; \left( \frac{\sum\limits_{i = 1}^{m}\; {\prod\limits_{j = 1}^{n}\; M_{jki}}}{\sqrt{\prod\limits_{j = 1}^{n}\; {\sum\limits_{i = 1}^{m}\; {M_{jki}}^{2}}}} \right)}}}} & \left( {{Expression}\mspace{14mu} 13} \right)\end{matrix}$

Here, N represents the number of three-dimensional points for comparingpixel values, n represents the number of cameras, and M_(jki) representsthe i^(th) pixel value in neighboring pixels with which a normalizedcross-correlation is calculated for a pixel location in the j^(th)camera image obtained by a camera corresponding to the k^(th)three-dimensional point.

It should be noted that a ternary expression or a difference in pixelvalues between adjacent pixels may be used rather than a normalizedcross-correlation.

EMBODIMENT 6

In embodiment 1, an example was given in which three-dimensional pointgroup data to be used for evaluation is selected based on pixel values;however, it is not necessary for the basis for selection to berestricted to pixel values. In embodiment 6, the case wherethree-dimensional point group data is selected based on a covered regionwill be described.

The functional configuration of the camera parameter calculationapparatus according to embodiment 6 is substantially the same as that ofthe camera parameter calculation apparatus 101 described in embodiment1, and therefore a description thereof has been omitted.

FIG. 18 is a flowchart depicting an example of camera parametercalculation processing S350 according to embodiment 6. In FIG. 18, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted. In stepS354, data of three-dimensional points that are present in at least onecovered region of the left camera 102 and the right camera 103 isexcluded from the three-dimensional point group data obtained in stepS303. A covered region is a region in which a front three-dimensionalobject within the covered region covers a rear three-dimensional object,and is a region that extends in one direction from a camera. Thedetermining of this covered region will be described.

One point within a three-dimensional space corresponds to one opticalpath of light incident upon a camera. Even in the case where a pluralityof three-dimensional objects are present side-by-side in a coveredregion, the three-dimensional laser scanner 106 obtains the worldcoordinates of the plurality of three-dimensional objects fromviewpoints that are different from that of the camera. When the worldcoordinates are projected onto an image on the basis of the cameraparameters, a plurality of image coordinates that are the same or havehardly any differences are calculated. That is, a plurality ofcorresponding points having a distance of separation that is equal to orless than a threshold value are obtained in one image, and it is therebyunderstood that a plurality of three-dimensional points are located in acovered region of the camera that captured said image. There is apossibility that the corresponding points of such three-dimensionalpoints may represent pixel values that do not correspond to the originalthree-dimensional points and are therefore not appropriate forcalculation of the evaluation values J.

Consequently, it is determined that sets of three-dimensional points forwhich the distance between image coordinates projected onto the image isless than a threshold value are three-dimensional points that arepresent in a covered region, and, according to said determination,evaluation values J are calculated excluding the three-dimensionalpoints present in the covered region.

As mentioned above, by excluding three-dimensional points present in acovered region from the calculation of evaluation values, cameracalibration can be carried out without being affected by coveredregions.

EMBODIMENT 7

In embodiments 1 and 6, examples were given in which three-dimensionalpoint group data to be used for evaluation is selected based on pixelvalues or a covered region; however, it is not necessary for the basisfor selection to be restricted thereto. In embodiment 7, a case will bedescribed where three-dimensional point group data is selected based onthe distance between two three-dimensional points with which an angleformed by measurement light of the three-dimensional laser scanner isless than a threshold value. The angle formed by measurement light ofthe three-dimensional laser scanner being less than a threshold value issynonymous with being visible within a predetermined vicinity from adistance measurement viewpoint and, for example, with athree-dimensional laser scanner that rotates about the two axes of a panangle and a tilt angle, is defined as being close in terms of the panangle and the tilt angle (that is, both the pan angle and the tilt angleare less than the threshold value).

The functional configuration of the camera parameter calculationapparatus according to embodiment 7 is substantially the same as that ofthe camera parameter calculation apparatus 101 described in embodiment1, and therefore a description thereof has been omitted.

FIG. 19 is a flowchart depicting an example of camera parametercalculation processing S360. In FIG. 19, the same steps as in embodiment1 are denoted by the same step names as in FIG. 2, and thereforedescriptions thereof have been omitted. In step S364, a region having alarge change in spatial distance is excluded from the three-dimensionalpoint group data obtained in step S303. The determining of this regionhaving a large change in spatial distance will be described.

The three-dimensional laser scanner causes a laser radiation port torotate about a plurality of rotation axes, and obtains three-dimensionalpoint group data at certain angle intervals. To simplify thedescription, it is assumed that the center of rotation of thethree-dimensional laser scanner is the point of origin, and that thelaser radiation port rotates about the two rotation axes of a pan angleand a tilt angle centered about said point of origin. A distance betweentwo three-dimensional points with which the pan angle and the tilt angleare close is approximated by a difference between depth values measuredby the three-dimensional laser scanner, for example. A region includingsets of points in which the largest value for the distance between twothree-dimensional points with which the pan angle and the tilt angle areclose is greater than a threshold value is determined as a region havinga large change in spatial distance. According to said determination,evaluation values J are calculated excluding three-dimensional pointgroups that are present in regions having a large change in spatialdistance. According to said exclusion, the general form of the functionfor the evaluation values J becomes smooth, and minimization of theevaluation values J is facilitated.

As mentioned above, by excluding three-dimensional point group data ofregions having a large spatial change, camera calibration can be carriedout without being affected by three-dimensional point group data that ispresent in boundaries between objects or surfaces having considerableunevenness.

EMBODIMENT 8

In embodiments 1, 6, and 7, examples were given in whichthree-dimensional point group data to be used for evaluation is selectedbased on pixel values, covered regions, or spatial changes in thedistance between two points of a three-dimensional point group withwhich the pan angle and the tilt angle of the three-dimensional laserscanner are close; however, it is not necessary for there to be anyrestriction thereto. In embodiment 8, the case where three-dimensionalpoint group data is selected based on intensity values will bedescribed. The functional configuration of the camera parametercalculation apparatus according to embodiment 8 is substantially thesame as that of the camera parameter calculation apparatus 101 describedin embodiment 1, and therefore a description thereof has been omitted.

FIG. 20 is a flowchart depicting an example of camera parametercalculation processing S370. In FIG. 20, the same steps as in embodiment1 are denoted by the same step names as in FIG. 2, and thereforedescriptions thereof have been omitted. In step S374, three-dimensionalpoint group data is selected based on intensity values, fromthree-dimensional point group data including intensity values obtainedin step S373. The selection method will be described.

The three-dimensional laser scanner radiates a laser onto an object, andthe depth of the object is calculated based on reflected light receivedtherefrom. Therefore, intensity values (received light intensity orobject reflectance) that are associated with three-dimensional pointgroup data can be obtained. The intensity values change according to theshape and material of an object surface, and there is a correlation withthe color of the object surface. Said correlation will be describedhereinafter. White and black objects that do not emit light themselvesin the visible light region respectively correspond to the case wherelight reflectance is high and the case where light reflectance is low.Therefore, the reflection characteristics of an object with respect tovisible or near-infrared laser light are close to the reflectioncharacteristics of visible light. Consequently, there is a correlationbetween the color of an object surface and the intensity values.

In a three-dimensional laser scanner that rotates about the two axes ofa pan angle and a tilt angle similar to that described in embodiment 7,sets of three-dimensional points in which the difference between theintensity values of any two points of a three-dimensional point groupthat are close in terms of the pan angle and the tilt angle (that is,visible within a predetermined vicinity from the distance measurementviewpoint) is less than a first threshold value or is greater than asecond threshold value are excluded from the three-dimensional pointgroup data obtained in S303. According to said exclusion,three-dimensional point groups in which the difference between intensityvalues is small and the evaluation values J do not change, andthree-dimensional point groups in which the difference between intensityvalues is large and the change in the evaluation values J is large areexcluded from the calculation of the evaluation values, and thereforethe approximate form of the function for the evaluation values J becomessmooth, and minimization of the evaluation values J is facilitated.

As mentioned above, by excluding three-dimensional point group data inwhich the difference between intensity values is large, cameracalibration can be carried out without being affected bythree-dimensional point group data that is present on an object surfacehaving a large change in color.

EMBODIMENT 9

In embodiments 1 and 6 to 8, examples were given in whichthree-dimensional point group data to be used for evaluation is selectedbased on pixel values, covered regions, spatial changes in the distancebetween two points of a three-dimensional point group with which the panangle and the tilt angle of the three-dimensional laser scanner areclose, or intensity values; however, it is not necessary for there to beany restriction thereto. In embodiment 9, the case wherethree-dimensional point group data is selected based on colorinformation of a three-dimensional point group will be described.

The functional configuration of the camera parameter calculationapparatus according to embodiment 9 is substantially the same as that ofthe camera parameter calculation apparatus 101 described in embodiment1, and therefore a description thereof has been omitted.

FIG. 21 is a flowchart depicting an example of camera parametercalculation processing S380. In FIG. 21, the same steps as in embodiment1 are denoted by the same step names as in FIG. 2, and thereforedescriptions thereof have been omitted. In step S384, three-dimensionalpoint group data is selected based on color information of athree-dimensional point group, from three-dimensional point group dataincluding color information obtained in step S383. The selection methodwill be described.

Color information (for example, RGB values or luminance values)associated with three-dimensional point group data can be obtained inthe case where visible light imaging is possible at the same axis as thelaser radiation axis of the three-dimensional laser scanner. In athree-dimensional laser scanner that rotates about the two axes of a panangle and a tilt angle similar to that described in embodiment 7, setsof three-dimensional points in which the difference between colorinformation (for example, RGB values or luminance values) of any twopoints of a three-dimensional point group that are close in terms of thepan angle and the tilt angle (that is, visible within a predeterminedvicinity from the distance measurement viewpoint) is less than a firstthreshold value or is greater than a second threshold value are excludedfrom the three-dimensional point group data obtained in S383. Accordingto said exclusion, three-dimensional point groups in which thedifference between color information values is small and the evaluationvalues J do not change, and three-dimensional point groups in which thedifference between color information is large and the change in theevaluation values J is large are excluded from the calculation of theevaluation values, and therefore the approximate form of the functionfor the evaluation values J becomes smooth, and minimization of theevaluation values J is facilitated.

As mentioned above, by excluding three-dimensional point group data inwhich the difference in color information is large, camera calibrationcan be carried out without being affected by three-dimensional pointgroup data that is present on an object surface having a large change incolor.

EMBODIMENT 10

In embodiments 1 and 6 to 9, camera calibration using a multi-lenscamera and a three-dimensional laser scanner was described: however, inthe case where the three-dimensional laser scanner is able to obtaincolor information as described in embodiment 9, a camera can becalibrated with one camera and the three-dimensional laser scanner. Inembodiment 10, camera calibration by means of one camera and athree-dimensional laser scanner will be described.

FIG. 22 is a block diagram of a camera parameter calculation apparatus201. In FIG. 22, the same constituent elements as in embodiment 1 aredenoted by the same reference numbers as in FIG. 1, and thereforedescriptions thereof have been omitted. Compared to the camera parametercalculation apparatus 101 of embodiment 1, the camera parametercalculation apparatus 201 is different in that there is only one camera202 to be corrected, and in that the evaluation function used for thecamera parameter calculation processing in the camera parametercalculator 108 is different.

FIG. 23 is a flowchart depicting a parameter calculation operation ofcamera parameter calculation processing S400 according to embodiment 10.In FIG. 23, the same steps as in embodiments 1 and 9 are denoted by thesame step names as in FIGS. 3 and 21, and therefore descriptions thereofhave been omitted. Color information obtained by imaging at the sameaxis as that of the three-dimensional laser scanner is added to thethree-dimensional point group data obtained in step S383. Expression 14indicates the evaluation function J used in the evaluation valuecalculation of step S404.

$\begin{matrix}{{J = {\frac{1}{N}{\sum\limits_{k = 1}^{N}\left. {{I\left( {x_{k},y_{k}} \right)} - A_{k}} \right)}}}} & \left( {{Expression}\mspace{14mu} 14} \right)\end{matrix}$

Here, A_(k) represents the color information of a three-dimensionalpoint used for calculating the k^(th) image coordinates of a camera. Thecolor information is made to be the same color information as the pixelvalues of the camera. For example, in the case where the pixel values ofthe camera are RGB values, the color information of A_(k) uses RGBvalues. The other variables are the same as the variables included inexpression 3, and therefore a description thereof has been omitted.

As mentioned above, in the camera parameter calculation processing S400of embodiment 10, camera calibration can be carried out by means of onecamera and a three-dimensional laser scanner by using the colorinformation of three-dimensional points.

It should be noted that the absolute value sum of differences betweenpixel values and color information of expression 14 may be a square sumof the differences. Furthermore, two or more cameras may be used.

EMBODIMENT 11

In embodiment 11, camera parameters are calculated excluding regions inwhich an image luminance gradient is not present or is sufficientlysmall, and thus the calculation amount is reduced with calculations forregions having little contribution to evaluation values being omitted.

The aforementioned is based on the following approach. Morespecifically, in the case where the luminance gradient is 0 aroundpixels of two camera images to which a certain three-dimensional pointcorresponds, the luminance difference between the two pixels withrespect to this three-dimensional point is mostly fixed even if thecamera parameters are changed slightly. In other words, there is noeffect on the calculation of camera parameters for minimizing theevaluation values J. Hence, the calculation amount can be reduced byexcluding such three-dimensional points from the calculation of theevaluation values J.

In embodiment 11, compared to embodiment 1, the only difference is theoperation of the camera parameter calculator 108 for calculating thecamera parameters. The functional configuration of the camera parametercalculation apparatus 101 according to embodiment 11 is substantiallythe same as that of the camera parameter calculation apparatus 101described in embodiment 1, and therefore a description thereof has beenomitted.

FIG. 24 is a flowchart depicting an example of camera parametercalculation processing S500 according to embodiment 11. In FIG. 24, thesame steps as in embodiment 1 are denoted by the same step names as inFIG. 2, and therefore descriptions thereof have been omitted.

In step S501 of FIG. 24, the camera parameter calculator 108 creates apoint group selection mask for determining whether or not each of thethree-dimensional points of N points acquired in step S303 is to be usedfor the calculation of evaluation values, on the basis of a luminancegradient of a camera image obtained in step S301. With respect to eachpixel in the camera image, the point group selection mask takes twovalues indicating whether the pixel in question is a valid pixel that isto be used for calculating evaluation values or an invalid pixel wherethe luminance value of said pixel is not to be used for calculatingevaluation values. The point group selection mask is created forindividual camera images captured by one or more cameras.

FIG. 25 is a flowchart depicting a detailed example of point groupselection mask creation processing S501.

In the point group selection mask creation processing S501, a pixelindex is taken as i, and loop processing is carried out in which thepixels i in the camera image are sequentially selected and it isspecified whether the selected pixel i is a valid pixel or an invalidpixel (S5011 to S5016).

A luminance gradient G_(i) of the pixel i is calculated from neighboringpixels centered about the pixel i (S5012). As an example of theluminance gradient, the luminance gradient G_(i) according toneighboring pixels centered about the pixel i is indicated in expression15.

G _(i)=√{square root over (ƒ_(x)(x _(i) , y _(i))²+ƒ_(y)(x _(i) , y_(i))²)}ƒ_(x)(x _(i) , y _(i))=I(x _(i), 1, y _(i))−I(x _(i)−1, y _(i))ƒ_(y)(x _(i) , y _(i))=I(x _(i) , y _(i)+1)−I(x _(i) , y _(i)−1)  (Expression 15)

Here, I(x, y) is a luminance value at image coordinates (x, y).

A threshold value is compared with the luminance gradient G_(i) (S5013),and in the case where the luminance gradient G_(i) is greater than thethreshold value, the pixel i is set as a valid pixel in the point groupselection mask (S5014). Furthermore, in the case where the luminancegradient G_(i) is equal to or less than the threshold value, the pixel iis set as an invalid pixel in the point group selection mask (S5015).The threshold value, as an example, may be a constant multiple of theaverage luminance gradient of the entire image.

Once again referring to FIG. 24, in step S502, the camera parametercalculator 108 calculates the evaluation function J (for example,expression 3) using only the three-dimensional coordinates selectedbased on the point group selection mask created in step S501, fromwithin the three-dimensional point group data obtained in step S303.

In the example of a stereo camera, in the case where a pixel located ata corresponding point of a certain three-dimensional point is indicatedas an invalid pixel by the point group selection mask in at least one ofthe left/right camera images, the pixel value on the camera imagecorresponding to said three-dimensional point may be excluded from thecalculation of the evaluation function.

Furthermore, in the case where a pixel located at a corresponding pointof a certain three-dimensional point is indicated as an invalid pixel bythe point group selection mask in both of the left/right camera images,the pixel value on the camera image corresponding to saidthree-dimensional point may be excluded from the calculation of theevaluation function. As mentioned above, from within thethree-dimensional point group data, only three-dimensional points havinga small luminance gradient at corresponding points of a camera image areexcluded from the calculation of the evaluation function J, and thuscamera calibration can be carried out with the calculation amount beingreduced.

It should be noted it is not necessary for the evaluation function J tobe restricted to expression 3, and expressions 4 to 14 may be used,Furthermore, the point group selection mask does not have to indicatevalid pixels or invalid pixels with respect to all of the pixels of eachcamera image, and may indicate valid pixels or invalid pixels withrespect to only neighboring pixels of a corresponding point of eachthree-dimensional point.

MODIFIED EXAMPLES

Heretofore, the camera parameter calculation apparatus according to oneor more aspects of the present disclosure has been described based onembodiments; however, the present disclosure is not restricted to theseembodiments. Modes in which various modifications conceived by a personskilled in the art have been implemented in the present embodiments, andmodes constructed by combining the constituent elements in differentembodiments may also be included within the scope of the one or moreaspects of the present disclosure provided they do not depart from thepurpose of the present disclosure.

The camera parameter calculation apparatus of the present disclosure isuseful as a camera parameter calculation apparatus for calibratingvarious types of cameras without using a calibration index having aknown three-dimensional structure.

1-20. (canceled)
 21. A camera parameter calculation apparatus,comprising: a point group obtainer that obtains three-dimensional pointgroup data indicating three-dimensional coordinates of a plurality ofthree-dimensional points included in a common imaging space of one ormore cameras; a camera parameter calculator that (i) calculates imagecoordinates of corresponding points, for each of the plurality ofthree-dimensional points, in one or more images captured using the oneor more cameras, based on the three-dimensional point group data and oneor more initial camera parameters of the one or more cameras, and (ii)calculates one or more camera parameters of the one or more cameras,based on pixel values, included in the one or more images, at the imagecoordinates; and a camera parameter outputter that outputs the one ormore camera parameters, wherein the one or more cameras and the one ormore initial camera parameters are in one-to-one relationship, the oneor more cameras and the one or more images are in one-to-onerelationship, and the one or more cameras and the one or more cameraparameters are in one-to-one relationship, and wherein the one or morecameras are two or more cameras, the camera parameter calculatorcalculates the one or more camera parameters on the basis of a pluralityof differences, and each of the plurality of differences is a differencebetween: one pixel value from among pixel values at correspondingpoints, for one three-dimensional point from among the plurality ofthree-dimensional points, in individual images captured by the two ormore cameras; and an average value for said pixel values.
 22. The cameraparameter calculation apparatus according to claim 21, wherein thedifference is an absolute value of the difference between the pixelvalue and the average value.
 23. The camera parameter calculationapparatus according to claim 21, wherein the difference is a squarevalue of the difference between the pixel value and the average value.24. A camera parameter calculation apparatus, comprising: a point groupobtainer that obtains three-dimensional point group data indicatingthree-dimensional coordinates of a plurality of three-dimensional pointsincluded in a common imaging space of one or more cameras; a cameraparameter calculator that (i) calculates image coordinates ofcorresponding points, for each of the plurality of three-dimensionalpoints, in one or more images captured using the one or more cameras,based on the three-dimensional point group data and one or more initialcamera parameters of the one or more cameras, and (ii) calculates one ormore camera parameters of the one or more cameras, based on pixelvalues, included in the one or more images, at the image coordinates;and a camera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the one or more cameras are two ormore cameras, and the camera parameter calculator calculates the one ormore camera parameters on the basis of a degree of similarity of pixelvalue patterns in neighboring pixels of the corresponding points,corresponding to the same three-dimensional point, in individual images.25. The camera parameter calculation apparatus according to claim 24,wherein the camera parameter calculator calculates the one or morecamera parameters on the basis of a plurality of normalizedcross-correlations, and each of the plurality of normalizedcross-correlations is a correlation between pixel values included in avicinity of the corresponding points, for the one three-dimensionalpoint from among the plurality of three-dimensional points, in theindividual images captured by the two or more cameras.
 26. A cameraparameter calculation apparatus, comprising: a point group obtainer thatobtains three-dimensional point group data indicating three-dimensionalcoordinates of a plurality of three-dimensional points included in acommon imaging space of one or more cameras; a camera parametercalculator that (i) calculates image coordinates of correspondingpoints, for each of the plurality of three-dimensional points, in one ormore images captured using the one or more cameras, based on thethree-dimensional point group data and one or more initial cameraparameters of the one or more cameras, and (ii) calculates one or morecamera parameters of the one or more cameras, based on pixel values,included in the one or more images, at the image coordinates; and acamera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the camera parameter calculatorexcludes, from calculation of the one or more camera parameters, athree-dimensional point at which a plurality of the corresponding pointshaving a distance of separation that is equal to or less than athreshold value are obtained in at least any one image, from among theplurality of three-dimensional points.
 27. A camera parametercalculation apparatus, comprising: a point group obtainer that obtainsthree-dimensional point group data indicating three-dimensionalcoordinates of a plurality of three-dimensional points included in acommon imaging space of one or more cameras; a camera parametercalculator that (i) calculates image coordinates of correspondingpoints, for each of the plurality of three-dimensional points, in one ormore images captured using the one or more cameras, based on thethree-dimensional point group data and one or more initial cameraparameters of the one or more cameras, and (ii) calculates one or morecamera parameters of the one or more cameras, based on pixel values,included in the one or more images, at the image coordinates; and acamera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the camera parameter calculatorcalculates the one or more camera parameters from three-dimensionalpoints having excluded therefrom one or more three-dimensional points atwhich a luminance gradient at a corresponding point of at least oneimage from among the one or more images is less than a threshold value,from among the plurality of three-dimensional points.
 28. A cameraparameter calculation apparatus, comprising: a point group obtainer thatobtains three-dimensional point group data indicating three-dimensionalcoordinates of a plurality of three-dimensional points included in acommon imaging space of one or more cameras; a camera parametercalculator that (i) calculates image coordinates of correspondingpoints, for each of the plurality of three-dimensional points, in one ormore images captured using the one or more cameras, based on thethree-dimensional point group data and one or more initial cameraparameters of the one or more cameras, and (ii) calculates one or morecamera parameters of the one or more cameras, based on pixel values,included in the one or more images, at the image coordinates; and acamera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the three-dimensional point groupdata indicates three-dimensional locations of the plurality ofthree-dimensional points on the basis of reflection of measurement lightemitted from a predetermined distance measurement viewpoint, and thecamera parameter calculator excludes, from calculation of the one ormore camera parameters, two three-dimensional points, included in theplurality of three-dimensional points, with which a distance between thetwo three-dimensional points is greater than a threshold value and anangle formed by direction vectors of the measurement light toward thetwo three-dimensional points is less than a threshold value.
 29. Acamera parameter calculation apparatus, comprising: a point groupobtainer that obtains three-dimensional point group data indicatingthree-dimensional coordinates of a plurality of three-dimensional pointsincluded in a common imaging space of one or more cameras; a cameraparameter calculator that (i) calculates image coordinates ofcorresponding points, for each of the plurality of three-dimensionalpoints, in one or more images captured using the one or more cameras,based on the three-dimensional point group data and one or more initialcamera parameters of the one or more cameras, and (ii) calculates one ormore camera parameters of the one or more cameras, based on pixelvalues, included in the one or more images, at the image coordinates;and a camera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the three-dimensional point groupdata indicates three-dimensional locations of the plurality ofthree-dimensional points and intensity values of return light ofmeasurement light from each three-dimensional point, based on reflectionof the measurement light emitted from a predetermined distancemeasurement viewpoint, and the camera parameter calculator calculatesthe one or more camera parameters using only a plurality ofthree-dimensional points that are visible within a predeterminedvicinity from the distance measurement viewpoint and have a differencebetween the intensity values that is within a range decided using afirst threshold value and a second threshold value, from among theplurality of three-dimensional points.
 30. A camera parametercalculation apparatus, comprising: a point group obtainer that obtainsthree-dimensional point group data indicating three-dimensionalcoordinates of a plurality of three-dimensional points included in acommon imaging space of one or more cameras; a camera parametercalculator that (i) calculates image coordinates of correspondingpoints, for each of the plurality of three-dimensional points, in one ormore images captured using the one or more cameras, based on thethree-dimensional point group data and one or more initial cameraparameters of the one or more cameras, and (ii) calculates one or morecamera parameters of the one or more cameras, based on pixel values,included in the one or more images, at the image coordinates; and acamera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, and wherein the three-dimensional point groupdata is data obtained by measuring distances of the plurality ofthree-dimensional points using a three-dimensional laser scanner.
 31. Acamera parameter calculation apparatus, comprising: a point groupobtainer that obtains three-dimensional point group data indicatingthree-dimensional coordinates of a plurality of three-dimensional pointsincluded in a common imaging space of one or more cameras; a cameraparameter calculator that (i) calculates image coordinates ofcorresponding points, for each of the plurality of three-dimensionalpoints, in one or more images captured using the one or more cameras,based on the three-dimensional point group data and one or more initialcamera parameters of the one or more cameras, and (ii) calculates one ormore camera parameters of the one or more cameras, based on pixelvalues, included in the one or more images, at the image coordinates;and a camera parameter outputter that outputs the one or more cameraparameters, wherein the one or more cameras and the one or more initialcamera parameters are in one-to-one relationship, the one or morecameras and the one or more images are in one-to-one relationship, andthe one or more cameras and the one or more camera parameters are inone-to-one relationship, wherein calculation of the image coordinatesincludes the camera parameter calculator converting the plurality ofthree-dimensional coordinates into the image coordinates in the one ormore images corresponding to the one or more cameras, based on the oneor more initial camera parameters corresponding to the one or morecameras, and wherein the three-dimensional point group data indicatesthree-dimensional locations of the plurality of three-dimensional pointsand a color of an object at each three-dimensional point, based onreflection of measurement light emitted from a predetermined distancemeasurement viewpoint and color imaging from the distance measurementviewpoint, and the camera parameter calculator calculates the one ormore camera parameters using only a plurality of three-dimensionalpoints that are visible within a predetermined vicinity from thedistance measurement viewpoint and have a difference between the colorsof the objects that is within a range decided using a first thresholdvalue and a second threshold value, from among the plurality ofthree-dimensional points.
 32. A camera parameter calculation apparatus,comprising: a point group obtainer that obtains three-dimensional pointgroup data indicating three-dimensional coordinates of a plurality ofthree-dimensional points included in a common imaging space of one ormore cameras; a camera parameter calculator that (i) calculates imagecoordinates of corresponding points, for each of the plurality ofthree-dimensional points, in one or more images captured using the oneor more cameras, based on the three-dimensional point group data and oneor more initial camera parameters of the one or more cameras, and (ii)calculates one or more camera parameters of the one or more cameras,based on pixel values, included in the one or more images, at the imagecoordinates; and a camera parameter outputter that outputs the one ormore camera parameters, wherein the one or more cameras and the one ormore initial camera parameters are in one-to-one relationship, the oneor more cameras and the one or more images are in one-to-onerelationship, and the one or more cameras and the one or more cameraparameters are in one-to-one relationship, and wherein thethree-dimensional point group data indicates three-dimensional locationsof the plurality of three-dimensional points and a color of an object ateach three-dimensional point, based on reflection of measurement lightemitted from a predetermined distance measurement viewpoint and colorimaging from the distance measurement viewpoint, each of the one or morecameras is a color camera, the camera parameter calculator calculates acamera parameter of one camera from among the one or more cameras on thebasis of a plurality of differences, and the plurality of differencesare differences between: a color indicated by a pixel value at acorresponding point, for one three-dimensional point from among theplurality of three-dimensional points, in an image captured by the onecamera; and the color of the object at the one three-dimensional pointindicated by the three-dimensional point group data.
 33. The cameraparameter calculation apparatus according to claim 31, wherein the pointgroup obtainer obtains the three-dimensional point group data from athree-dimensional laser scanner provided with a color camera thatcaptures color-images in a distance measurement space.